package models

var SchoolStatus map[int]string

// 学校
type School struct {
	Id                 int64   `orm:"description(自增主键)"`
	Sn                 string  `orm:"description(唯一标识)"`
	Name               string  `orm:"description(学校名称)"`
	Province           *Region `orm:"null;default(0);rel(fk);description(所属省)"`
	City               *Region `orm:"null;default(0);rel(fk);description(所属市)"`
	District           *Region `orm:"null;default(0);rel(fk);description(所属县区)"`
	Status             int     `orm:"description(状态，0禁用 1正常)"`
	StatusShow         string  `orm:"-"`
	Tuition            float64 `orm:"digits(12);decimals(2);description(每学期学费)"`
	MorningTime        string  `orm:"description(上午上课时间)"`
	AfternoonTime      string  `orm:"description(下午上课时间)"`
	IsUseMobileMsg     int     `orm:"description(是否启用短信通知 0不启用 1启用)"`
	MobileMsgPrice     float64 `orm:"digits(12);decimals(2);description(短信通知费用)"`
	IsUseAccessControl int     `orm:"description(是否启用门禁通知 0不启用 1启用)"`
	AccessControlPrice float64 `orm:"digits(12);decimals(2);description(门禁通知费用)"`
	IsUseSchoolBus     int     `orm:"description(是否启用校车通知 0不启用 1启用)"`
	SchoolBusPrice     float64 `orm:"digits(12);decimals(2);description(校车通知费用)"`
	IsUseTemp          int     `orm:"description(是否启用体温通知 0不启用 1启用)"`
	TempPrice          float64 `orm:"digits(12);decimals(2);description(体温通知费用)"`
	IsUseHomework      int     `orm:"description(是否启用作业通知 0不启用 1启用)"`
	HomeworkPrice      float64 `orm:"digits(12);decimals(2);description(作业通知费用)"`
	IsUseMeeting       int     `orm:"description(是否启用会议通知 0不启用 1启用)"`
	MeetingPrice       float64 `orm:"digits(12);decimals(2);description(会议通知费用)"`
	IsUseGrade         int     `orm:"description(是否启用成绩通知 0不启用 1启用)"`
	GradePrice         float64 `orm:"digits(12);decimals(2);description(成绩通知费用)"`
	IsUseCourse        int     `orm:"description(是否启用课程安排通知 0不启用 1启用)"`
	CoursePrice        float64 `orm:"digits(12);decimals(2);description(课程安排通知费用)"`
}

func init() {
	SchoolStatus = map[int]string{
		0: "禁用",
		1: "正常",
	}
}
